const state = {
    type: 0
}

const mutations = {
    SET_TYPE: (state, type) => {
        state.type = type
    }
}

const actions = {
    getType({ commit }, type) {
        commit('SET_TYPE', type)
    },
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}